package binary;

public class BinaryDemo {
    public static void main(String[] args) {
        int n = 2;
        for (int i = 0; i < 30; i++) {
            n*=2;
        }
        n-=1;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(n);
    }
}
